<!doctype>
<html>

<head>
<!-- <script type="text/javascript" src="../node_modules/bignumber.js/bignumber.min.js"></script> -->
<script type="text/javascript" src="../dist/neb.js"></script>
<script type="text/javascript">
   
    var Neb = require('neb');
    var neb = new Neb();

    function createExampleAccount() {
        // var account = web3.personal.newAccount('111111');
        var allAccounts = neb.api.accounts();
        var content = "";
        for (var i = 0; i < allAccounts.addresses.length; i++) {
            content += '<li>'+allAccounts.addresses[i]+'</li>'
        }

        // document.getElementById('result').innerText = 'create: ' + account;
        document.getElementById('all-account').innerText = content;
    }

</script>
</head>
<body>
    <h1>List account</h1>
    <div>
        <button type="button" onClick="createExampleAccount();">list account</button>
    </div>
    <div id="result"></div>
    <div id="all-account"></div>
</body>
</html>

